Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Dash values to match 0.12.1 release #28

Merged
merged 1 commit into from
Mar 23, 2017
Merged

update Dash values to match 0.12.1 release #28

merged 1 commit into from
Mar 23, 2017

Conversation

@UdjinM6 UdjinM6 mentioned this pull request Mar 18, 2017
@jprichardson jprichardson merged commit 3d211bb into cryptocoinjs:master Mar 23, 2017
@jprichardson
Copy link
Member

Thanks!

@gpip
Copy link

gpip commented Mar 27, 2017

@UdjinM6 is it ok to continue using the old bytes for bip32? bitcore-lib gets confused with this dup from bitcoin, e.g.:

> var b = require('bitcore-lib');
> var c = require('coininfo');
> var dashmain = c.dash.main.toBitcore();
> dashmain.name = 'dash';
> dashmain.alias = 'dashmainnet';
> b.Networks.add(dashmain);
> b.HDPrivateKey('dash').network
'dash'  # OK
> b.HDPrivateKey(b.Networks.mainnet).network
'dash'  # FAIL

Without modifying:

> var b = require('bitcore-lib');
> b.HDPrivateKey(b.Networks.mainnet).network.name
'livenet'  # OK

@UdjinM6
Copy link
Contributor Author

UdjinM6 commented Mar 27, 2017

@gpip We had a conversation with multi-coin wallet devs (Jaxx, Exodus) and turned out that none of them are using pure bip32, they see bip32 as coin-agnostic bip and use bip44 to produce coin-specific keys, so we decided to adopt this policy in our reference client as well.

Litecoin values were changed this way too btw (https://www.reddit.com/r/litecoin/comments/48wd2e/why_arent_the_litecoin_bip32_serialization_values/) and they don't match now:

@gpip
Copy link

gpip commented Mar 27, 2017

@UdjinM6 even if they don't use pure bip32, this change still breaks bitcore-lib (see bitpay/bitcore-lib#131). You also can't use two bitcore-lib instances as there are checks against that (so you couldn't use bitcore-dash-lib and bitcore-lib to handle this issue). Seems like a good idea to patch bitcore-lib to handle duplicates on network settings correctly.

@UdjinM6
Copy link
Contributor Author

UdjinM6 commented Mar 27, 2017

@gpip

Seems like a good idea to patch bitcore-lib to handle duplicates on network settings correctly.

I agree

@jprichardson
Copy link
Member

Yeah, per BIP43 recommendations: https://github.com/bitcoin/bips/blob/master/bip-0043.mediawiki#node-serialization we (Exodus) uses xpub and xpriv for all assets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants